package com.example.boot3.rpc;

import org.junit.jupiter.api.Test;
import org.nfunk.jep.JEP;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class test11 {
    @Test
    public void test(){
        String expression ="a";
        JEP jep =new JEP();
        jep.addVariable("a",1.1);
        jep.addVariable("b",2);
        jep.parseExpression(expression);
        Object valueAsObject = jep.getValueAsObject();
        System.out.println("valueAsObject = " + valueAsObject);
    }
}
